#include "Interagir.h"

using namespace std;

Interagir::Interagir()
{
	m_menu.clear();
	m_menu.push_back("141.Parler");
	m_menu.push_back("0.Annuler");
}

void Interagir::addElem(std::string action)
{
	//permet de trouver le mot et de ne garder que ce qui suit.
	if(action.find("interagir/") != string::npos)
	{
		action = action.substr(10);
		m_menu[m_menu.size()-1] = action;
		m_menu.push_back("0.Annuler");
	}
}

void Interagir::supprElem()
{
		
}
	
	
string Interagir::getElem(int i)
{
	return m_menu[i];
}

int Interagir::getSize()
{
	return m_menu.size();
}
